import request from '@/utils/request'


//素材分类列表
export function getMaterialCateList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: '/api/poster.material_category/list',
      method: 'get',
      data
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}
//默认图片
export function getMaterialdefaultList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: '/api/setting/defaultImg',
      method: 'get',
      data
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}